import Vue from 'vue'
import VueRouter from 'vue-router'
import Reg from '@/views/Reg/Reg.vue'
import Login from '@/views/Login/Login.vue'

Vue.use(VueRouter)
// 配置路由
const routes = [
  // 重定项
  // {
  //   path: '/',
  //   redirect: '/Login'
  // },
  {
    path: '/reg',
    component: Reg
  },
  {
    path: '/login',
    component: Login
  }
]

const router = new VueRouter({
  routes
})

export default router
